package com.nanjia.boot.product.category.model.vo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品分类视图对象
 *
 * @author 周洋
 * @since 2025-07-04 15:24
 */
@Getter
@Setter
@Schema( description = "商品分类视图对象")
public class ProductCategoryVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "分类id")
    private Long id;
    @Schema(description = "分类名称")
    private String categoryName;
    @Schema(description = "分类编码")
    private String categoryCode;
    @Schema(description = "父分类ID")
    private Integer parentId;
    @Schema(description = "分类状态")
    private Integer categoryStatus;
    private LocalDateTime createTime;

    @Schema(description = "子部门")
    private List<ProductCategoryVO> children;
}
